import VueRouter from 'vue-router'

import HomeContainer from './components/tabbar/HomeContainer.vue'
import ListContainer from './components/tabbar/ListContainer.vue'
import ShopcarContainer from './components/tabbar/ShopcarContainer.vue'
import ChatboxesContainer from './components/tabbar/ChatboxesContainer.vue'
import ContactContainer from './components/tabbar/ContactContainer.vue'



//  创建路由对象
var router = new VueRouter({

    routes: [

        { path: '/', redirect: '/home' },
        {path:'/home',component:HomeContainer},
        {path:'/list',component:ListContainer},
        {path:'/shopcar',component:ShopcarContainer},
        {path:'/chatboxes',component:ChatboxesContainer},
        {path:'/contact',component:ContactContainer}




    ],
//指定高亮的类
 linkActiveClass:'mui-active'

});


// 把路由对象暴露出去
export default router